package pw.yitree.work.mmsh;

import java.util.Date;
import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

import org.hibernate.annotations.Type;

@Entity
@Table(name = "mmsh_materialsproject")
public class Project {
	public UUID getId() {
		return id;
	}
	public void setId(UUID id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getProjectManager() {
		return projectManager;
	}
	public void setProjectManager(String projectManager) {
		this.projectManager = projectManager;
	}
	public String getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public double getTotalInvestment() {
		return totalInvestment;
	}
	public void setTotalInvestment(double totalInvestment) {
		this.totalInvestment = totalInvestment;
	}
	public Date getMiddleDeliveryAt() {
		return middleDeliveryAt;
	}
	public void setMiddleDeliveryAt(Date middleDeliveryAt) {
		this.middleDeliveryAt = middleDeliveryAt;
	}
	public String getConstructionCompany() {
		return constructionCompany;
	}
	public void setConstructionCompany(String constructionCompany) {
		this.constructionCompany = constructionCompany;
	}
	public Date getCreatedAt() {
		return createdAt;
	}
	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}
	@Id
	@Type(type="pg-uuid")
	@Column(name = "id")
	private UUID id;
	@Column(name = "name")
	private String name;
	@Column(name = "ptype")
	private String type;
	@Column(name = "project_manager")
	private String projectManager;
	@Column(name = "created_by")
	private String createdBy;
	@Column(name = "code")
	private String code;
	@Column(name = "total_investment")
	private double totalInvestment;
	@Temporal(javax.persistence.TemporalType.DATE)
	@Column(name = "middle_delivery_date")
	private Date middleDeliveryAt;
	@Column(name = "construction_company")
	private String constructionCompany;
	@Column(name = "created_at")
	@Temporal(javax.persistence.TemporalType.TIMESTAMP)
	private Date createdAt;
}
